package model;

import java.util.ArrayList;


public class Trip {

	private int id;
	private ArrayList<Leg> legs;

	public Trip() {
		legs = new ArrayList<Leg>();
	}

	public Trip(int id) {
		this.setId(id);
	}

	public int getId() {
		return id;
	}

	public ArrayList<Leg> getLegs() {
		return legs;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void addLeg(Leg leg) {
		legs.add(leg);
	}
}
